<template>
	<view class="contact">
		<image class="aboutImg" src="https://img0.baidu.com/it/u=119552991,612637898&fm=253&fmt=auto&app=138&f=JPEG?w=1184&h=450"></image> 
		<view class="message">
			<view @click="phone">聯係電話：123456789 （ 點擊撥打 ）</view>
		    <view>聯係地址：xxx省xxx市xxx路xxx號 </view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :markers="covers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				longitude:110.300559,
				latitude:25.123168,
				covers:[{
					longitude:110.300559,
					latitude:25.123168,
					iconPath:"../../static/icon/location.png"
				}]
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber: '123456789' //仅为示例
				});

			}
		}
	}
</script>

<style lang="scss">
	.contact{
		.aboutImg{
			width:750rpx;
			height:320rpx;
		}
		
		.message{
			padding: 10rpx 20rpx;
			font-size: 30rpx;
			view{
				line-height: 60rpx;
				border-bottom: 1px solid #eee;
			}
		}
		
		.map{
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
